<template>
    <ul v-for="item in arr">
        {{item}}
    </ul>
    <input type="button" value="走一走" @click="run">
</template>
<script>
  import {reactive} from "vue"
  export default {
    name: 'App',
    setup(){
    const arr = reactive(['帅哥','美女','程序员'])
    const run = ()=>{
      arr.push(arr.shift())
    }
    return {arr,run}
  }
}
  </script>